
import uviewPlus from 'uview-plus'
import * as Pinia from 'pinia';
import initRequest from '@/util/request'
import share from '@/hooks/share'
const pinia = Pinia.createPinia()

import {
	createSSRApp
} from "vue";
import App from "./App.vue";
export function createApp() {
	const app = createSSRApp(App);

	app.use(uviewPlus)
	app.use(pinia)
	initRequest(app)
	// #ifdef MP-WEIXIN
	app.mixin(share)
	// #endif
	return {
		app,
		Pinia
	};
}
